package com.winspread.app.fragment

import android.os.Bundle
import com.winspread.app.R
import com.winspread.app.databinding.ActivityFragmentBinding
import com.winspread.mvvm.base.vm.BaseNotVmActivity

class FragmentActivity : BaseNotVmActivity<ActivityFragmentBinding>(R.layout.activity_fragment) {


    init {
        initImmersionBar(true)
    }


    override fun initView() {
        binding.fragmentBottom1.fragments = linkedMapOf(
            Pair(
                R.id.but_1,
                AFragment.getInstance {
                    val bundle = Bundle()
                    bundle.putString("AFRAGMENT", "AFRAGMENT_1")
                    return@getInstance bundle
                },
            ),
            Pair(
                R.id.but_2,
                AFragment.getInstance {
                    val bundle = Bundle()
                    bundle.putString("AFRAGMENT", "AFRAGMENT_2")
                    return@getInstance bundle
                },
            ),
            Pair(
                R.id.but_3,
                BFragment.getInstance(null)
            ),
        )
    }


}